import random
import re

#
# ling1 = 'https://bh.fang.anjuke.com/loupan/all/m562/'
# ling2 = 'https://bh.fang.anjuke.com/loupan/448757.html'
#
# d = re.findall(".+\d+.html$", ling1)
#
# print(d)
#
# print(random.randint(10, 30))


url = ['a', 'b', 'c', 'd', 'e', 'f']

print(len(url))

while url:
    url_index = random.randint(0, len(url)-1)
    print(url_index)
    URL = url[url_index]
    print("request URL: ", URL)
    url.remove(URL)

print(url)